package com.copm.ifm.servers.sys.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.copm.ifm.servers.sys.entity.SysTenantDict;
import com.copm.ifm.servers.sys.mapper.SysTenantDictMapper;
import com.copm.ifm.servers.sys.service.SysTenantDictService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 租户级数据字典表 服务实现类
 *
 * @author zzf
 * @since 2020-12-23
 */
@Service
public class SysTenantDictServiceImpl extends ServiceImpl<SysTenantDictMapper, SysTenantDict> implements SysTenantDictService {

    @Override
    public List<SysTenantDict> listAll() {
        return baseMapper.selectList(new LambdaQueryWrapper<SysTenantDict>()
                .select(SysTenantDict::getId,
                        SysTenantDict::getTenantId,
                        SysTenantDict::getSysDictId,
                        SysTenantDict::getCode,
                        SysTenantDict::getContent
                )
        );
    }
}
